<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!doctype html>
<html>
<jsp:include page="../common/import.jsp" flush="true"></jsp:include>
<body>
<jsp:include page="../common/header.jsp" flush="true"></jsp:include>

<div class="main p20">
	<div class="container clear">
        <ul class="left-nav fl pt20 w200">
            <li><a class="ahover" href="${base}/agent/user/personalCenter.xhtml"><span class="iconfont">&#xf014b;</span>个人信息</a></li>
            <li><a href="${base}/agent/user/pwPage.xhtml"><span class="iconfont">&#xf014d;</span>修改密码</a></li>
        </ul>
        
        <div class="main-right fr">
        	<div class="b m20 b-radius">
            	<div class="clear bgf5 bb">
                	<h2 class="fl h30 lg30 p5 pl10">个人信息</h2>
                    <a href="javascript:" class="fr h20 p5 m5 w100 bg1eb9ef cfff b-radius tc" onclick="back()">返回业务员</a>
                </div>
                
                <div class="p50 mt20 pb100">
                    <div class="clear mt20">
                    	<span class="fl w300 tr h20 lg20 p5 fb">登录账号:</span>
                        <span class="fl h20 lg20 p5">${user.username}</span>
                    </div>
                    
                    <!-- <div class="clear mt20">
                    	<span class="fl w300 tr h20 lg20 p5 fb">登录账号:</span>
                        <span class="fl h20 lg20 p5">上海科技电子有限公司${agent.name}</span>
                    </div> -->
                    <div class="clear mt20">
                    	<span class="fl w300 tr h20 lg20 p5 fb">商户名称:</span>
                        <span class="fl h20 lg20 p5">${agent.name}</span>
                    </div>
                    <div class="clear mt20">
                    	<span class="fl w300 tr h20 lg20 p5 fb">手机号：</span>
                        <span class="fl h20 lg20 p5">${agent.contactPhone}</span>
                    </div>
                    
                    <div class="clear mt20">
                    	<span class="fl w300 tr h20 lg20 p5 fb">授权区域：</span>
                        <span class="fl h20 lg20 p5">${agent.authorZone}</span>
                    </div>
                                        
                    <c:if test="${agent.parentId=='0'}">
                    <div class="clear mt20">
                    	<span class="fl w300 tr h20 lg20 p5 fb">代理级别：</span>
                    	<c:if test="${agent.level=='1'}"><span class="fl h20 lg20 p5">总代理</span></c:if>
                    	<c:if test="${agent.level=='2'}"><span class="fl h20 lg20 p5">核心代理</span></c:if>
                    	<c:if test="${agent.level=='3'}"><span class="fl h20 lg20 p5">普通代理</span></c:if>
                        
                    </div>
                    </c:if>
                </div>
                
            </div>
        </div>
    </div>
</div>

<jsp:include page="../common/footer.jsp" flush="true"></jsp:include>
<script type="text/javascript">
function back(){
	
	window.location.href="${pageContext.request.contextPath}/sales/salesList.xhtml";
}
</script>

</body>
</html>